<?php defined('BASEPATH') OR exit('No direct script access allowed');

/**
 * @package     Pages Module
 * @author      Matrix Infoline (infolinematrix@gmail.com
 * @copyright   (c) Matrix Infoline
 */

class Dashboard extends Frontend_Controller
{

	public function __construct()
	{
		parent::__construct();
		$this->template->set_layout('member_layout');
		
		$this->member_model->check_logedin();
		$this->template->set_partial('header', 'header/header');
        $this->template->set_partial('footer', 'footer/footer');
	}

	public function index()
	{
		
		$data['title'] = "Member Dashboard";



		
		//-- Clear Session Data
		$data['business'] = $this->member_model->getBusiness(get_session('mem_id'));


        //BREADCRUMB//
		$this->template->set_breadcrumb('Home', base_url().seoUrl(location()));
		$this->template->set_breadcrumb('Member', 'member/dashboard');
		$this->template->set_breadcrumb('Dashboard');
		
		$this->template->build('dashboard',$data);
		 
	}
	
	

}
